
 
 F u n c t i o n :   i s F o c u s W i t h i n ( d o m E l e m e n t ) 
 
 
 
 D e s c r i p t i o n :   D e t e r m i n e s   i f   a n   e l e m e n t   c u r r e n t l y   h a s   f o c u s   w i t h i n   t h e   s p e c i f i e d   c o n t a i n e r   e l e m e n t . 
 
 
 
 R e t u r n s :   T r u e   i f   y e s ,   F a l s e   o t h e r w i s e . 
 
 
 
 N o t e :   T h e   i s F o c u s W i t h i n ( )   f u n c t i o n   a l w a y s   r e t u r n s   a   B o o l e a n   v a l u e ,   e v e n   w h e n   c h a i n e d . 
 
 
 
 E x a m p l e : 
 
 
 
 v a r   h a s F o c u s W i t h i n   =   $ A . i s F o c u s W i t h i n ( d o m E l e m e n t ) ; 
 
 
 
 / /   O r   t h e   s a m e   u s i n g   c h a i n i n g 
 
 
 
 v a r   h a s F o c u s W i t h i n   =   $ A ( d o m E l e m e n t ) . i s F o c u s W i t h i n ( ) ; 
 
 